{include file="header.tpl"}
<div data-role="page">	
	<div data-role="header" data-position="fixed" data-theme="b">
		<h1>{$siteTitle}</h1>
	</div>
	
	<div data-role="content">
        <ul data-role="listview" data-inset="true" data-split-icon="gear" data-split-theme="d">
            {foreach from=$listViews item=r}
            <li>
                <a href="installment-info-{$r->id}.html">
                    <h3>{$r->name}</h3>
                    <p>{if !$r->description}Brak opisu{else}{$r->description}{/if}</p>
                    <p class="ui-li-aside"><strong>{$r->costs}</strong> zł</p>
                </a>
                <a href="installment-edit-{$r->id}.html" data-theme="b">Edycja</a>
            </li>
            {/foreach}
        </ul>
	</div>
	
    <div data-role="footer" data-theme="c" data-position="fixed">
        <div data-role="navbar">
                <ul>
                    <li><a data-rel="back" data-icon="back" data-theme="a">Wstecz</a></li>
                    <li><a href="home.html" data-icon="home" data-theme="a">Home</a></li>
                    <li><a href="installment-new.html" data-icon="plus" data-theme="b">Nowe</a></li>
                </ul>
            </div>
    </div>
</div>		
{include file="footer.tpl"}